package main.run;

import inputter.Inputter;

import java.util.LinkedList;
import java.util.Queue;

import outputter.Outputter;

import processor.Processor;

import model.Student;

public class MainThread extends Thread {
	public static Queue<Student> qInput = new LinkedList<Student>();
	public static Queue<String> qOutput = new LinkedList<String>();

	@Override
	public void run() {
		Thread inputter = new Inputter();
		inputter.setName("Inputter");
		inputter.setPriority(MAX_PRIORITY);
		inputter.start();
		
		for (int i = 0; i < 10; i++) {
			Thread processor = new Processor();
			processor.setName("Processor" + i);
			processor.start();
		}
		
		Thread outputter = new Outputter();
		outputter.setName("Outputter");
		outputter.setPriority(MAX_PRIORITY);
		outputter.start();
		super.run();
	}

	
}
